package com.competition.reception.service.impl;

import com.competition.reception.entity.Examination;
import com.competition.reception.entity.vo.CompetitionQueryVo;
import com.competition.reception.entity.vo.ExaminationInfo;
import com.competition.reception.mapper.ExaminationMapper;
import com.competition.reception.service.ExaminationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 知识竞赛测试表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2021-04-05
 */
@Service
public class ExaminationServiceImpl extends ServiceImpl<ExaminationMapper, Examination> implements ExaminationService {

    @Override
    public List<ExaminationInfo> getExaminationInfoList(CompetitionQueryVo competitionQueryVo) {
        return baseMapper.selectExaminationInfoList(competitionQueryVo);
    }

    @Override
    public int getExaminationInfoCount(CompetitionQueryVo competitionQueryVo) {
        return baseMapper.selectExaminationCount(competitionQueryVo);
    }
}
